if(!anthill) var anthill = {};
if(!anthill.maps) anthill.maps = {};

anthill.maps.DirectionsService = function(options) {
  this.set('options', options);
  this.set('ds', new google.maps.DirectionsService());
};

anthill.maps.DirectionsService.prototype = new google.maps.MVCObject();

anthill.maps.DirectionsService.prototype.setWaypoints = function(waipoints) {
  this.options.waypoints = waipoints;
};

anthill.maps.DirectionsService.prototype.getWaipoints = function() {
  return this.options.waypoints;
};

anthill.maps.DirectionsService.prototype.route = function(callback) {
  this.get('ds').route(this.options, callback);
};